package net.oschina.simpleplus;

/**
 * @author ; simpleplus(simpleplus@sina.cn)
 */
public abstract class Action implements Runnable{
    protected  ActionQueue queue;

    public Action(ActionQueue queue) {
        this.queue = queue;
    }

    public void run() {
        exec();
    }

    protected abstract void exec();

    protected void checkin(){
        queue.checkin(this);
    }
}
